import Mock from "mockjs"
import jwt from "jsonwebtoken"

const token = "Bearer" + jwt.sign({
    login:"xiaoyang"
},"login_token")
// console.log(token);
Mock.mock("/api/login",{
    code:200,
    message:"登录成功",
    token:token
})

Mock.mock("/api/list",{
    "userData|5-8":[
        {
            "id":"@id",
            "name":"@cname",
            "phone|12345678912-12345678919":2,
            "state|1":["学校","公司","家"],
            "city":"@county(true)",
        }
    ]
})